package jsyf.oa.dao.tmp;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.tmp.OilEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by jjx on 2018/3/6.
 */
@Repository
public class OilDao extends BaseDao {

    public OilDao() {
        super.iBaseEntity = new OilEntity();
    }

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json, OilEntity.class);
    }



}
